/*
 * Copyright (c) 2019 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.cookies-table {
  --override-flagged-row-background-color-odd: rgb(247 234 161);
  --override-flagged-row-background-color-even: rgb(255 240 155);
}

.-theme-with-dark-background .cookies-table,
:host-context(.-theme-with-dark-background) .cookies-table {
  --override-flagged-row-background-color-odd: rgb(94 81 8);
  --override-flagged-row-background-color-even: rgb(121 103 0);
}

.cookies-table .cookie-warning-icon {
  margin-right: 4px;
}

.cookies-table td.flagged-cookie-attribute-cell .cookie-warning-icon {
  filter: grayscale();
}

.cookies-table tr.revealed.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(odd) {
  background-color: var(--override-flagged-row-background-color-odd);
}

.cookies-table tr.revealed.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(even) {
  background-color: var(--override-flagged-row-background-color-odd);
}
